/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package entidades;

import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;

/**
 *
 * @author Utilizador
 */
@Entity
@Table(name = "FUNCIONARIOS_BALCAO")
@NamedQuery(name = "findAllFuncionariosBalcao", query = "SELECT f FROM FuncionarioBalcao f")


public class FuncionarioBalcao extends Utilizador implements Serializable {

    @ManyToOne

    private Farmacia farmacia;
    
    public FuncionarioBalcao(String username, String nome, String email, String morada, String password, String tipo, Farmacia farmacia) {
        super(username, nome, email, morada, password, tipo);
        this.farmacia = farmacia;
    }

    public FuncionarioBalcao() {
    }

    public Farmacia getFarmacia() {
        return farmacia;
    }

    public void setFarmacia(Farmacia farmacia) {
        this.farmacia = farmacia;
    }
    
    
  

    
}
